
public class BankSysControl {
	BankSysView view;
	
	//constructor for the BankSysControl class
	BankSysControl(){
		view = new BankSysView();
	}
	
	//clear the console
	public void clearConsole(){
		view.clearConsole();
	}
	
	//displays the menu to select an account to manage
	public BankAccount displayAvailableAccountsMenu(BankAccount[] accounts){
		return view.displayAvailableAccountsMenu(accounts);
	}
	
	//display the menu for an individual account
	public int displayAccountMenu(int menuPermissions,int accountNumber, String ownerName, String nickName,  int OwnerID, int type,double balance, double interestRate){
		return view.displayAccountMenu(menuPermissions, accountNumber, ownerName, nickName, OwnerID, type, balance, interestRate);
	}

	//get the username
	public String getUserName(){
		return view.getUserName();
	}	
	
	//get the password
	public String getPassword(){
		return view.getPassword();
	}	
	
	//Prompts for the amount to deposit
	public double getDepositAmount(){
		return view.getDepositAmount();
	}
		
	//Prompts for the amount to withdraw
	public double getWithdrawAmount(){
		return view.getWithdrawAmount();
	}
		
	//Prompts for the new interest rate
	public double getNewInterestRate(){
		return view.getNewInterestRate();
	}
	
	//used to display the interest rate to the user after adjusting it
	public void notifyInterestRate(double IR){
		view.notifyInterestRate(IR);
	}
	
	//notifies user that the interest has been added to the account
	public void notifyInterestGain(){
		view.notifyInterestGain();
	}
		
	//displays the balance for an account
	public void displayBalance(double balance){
		view.displayBalance(balance);
	}
	
	//prints out an error message
	public void printMessage(String msg){
		view.printMessage(msg);
	}
}